package online.foxnull2.foxmall.product.feign;

import online.foxnull2.foxmall.product.feign.fallback.WareFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Set;

@FeignClient(value = "foxmall-ware", fallback = WareFeignServiceFallback.class)
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    Set<Long> getSkuHasStock(@RequestBody List<Long> skuIds);

}
